import request from '@/utils/request'

export function listTopic(query) {
  return request({
    url: '/api/adminBiz/cmsTopic/list',
    method: 'post',
    data: query
  })
}

export function addTopic(data) {
  return request({
    url: '/api/adminBiz/cmsTopic/add',
    method: 'post',
    data: data
  })
}

export function deleteTopic(data) {
  return request({
    url: '/api/adminBiz/cmsTopic/delete',
    method: 'post',
    data: data
  })
}

export function updateTopic(data) {
  return request({
    url: '/api/adminBiz/cmsTopic/update',
    method: 'post',
    data: data
  })
}

export function uploadImg(data) {
  return request({
    url: '/api/adminBiz/upload/file',
    method: 'post',
    data: data
  })
}
